/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tallerfinal.util.distributions;

import tallerfinal.util.distributions.factory.GeneratorsFactory;
import tallerfinal.util.enums.DistributionsName;

/**
 *
 * @author ricardo
 */
public class ConstantGenerator extends Generator<Number> {
static {
        GeneratorsFactory.getInstance().registerProduct(DistributionsName.CONSTANTE, ConstantGenerator.class);
    }
    public Number value;

    public ConstantGenerator(Number value) {
        this.value = value;
    }

    @Override
    public Number generate() {
        return value;
    }
}
